package twu.shubham.biblioteca;

import org.junit.Test;

import static org.junit.Assert.assertEquals;

public class ExampleTests {

    @Test
    public void test1() throws Exception {

       assertEquals(1, new bookrecord().setValues(1, 2, "a"));
    }

    bookrecord book = new bookrecord();
    int a = book.setValues(1,2,"a");
    @Test
    public void test2() throws Exception {

        assertEquals(1, book.reserveBook());
    }
    @Test
    public void test3() throws Exception {

        assertEquals(0, new bookrecord().reserveBook());
    }



    @Test
    public void test4() throws Exception {

        book.reserveBook();
        assertEquals(1, book.returnBook());
    }

    @Test
    public void test5() throws Exception {

        assertEquals(0, book.returnBook());
    }

    @Test
    public void test6() throws Exception {

        assertEquals(1, book.bookPrint());
    }

    @Test
    public void test7() throws Exception {

        assertEquals(0,new bookrecord().bookPrint());
    }


}


